<%@ tag language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ attribute name="url" required="true" type="java.lang.String" %>
<%@ attribute name="page" required="true" type="com.kzw.dao.support.Page"%>

<div>
	<c:choose>
		<c:when test="${page.pageNo==1}">第一页  上一页</c:when>
		<c:otherwise>
			<a href="${url}?pageNo=1">第一页</a>
			<a href="${url}?pageNo=${page.prePage}">上一页</a>		
		</c:otherwise>
	</c:choose>
	<c:choose>
		<c:when test="${page.pageNo==page.totalPages}">下一页  最末页</c:when>
		<c:otherwise>
			<a href="${url}?pageNo=${page.nextPage}">下一页</a>
			<a href="${url}?pageNo=${page.totalPages}">最末页</a>	
		</c:otherwise>
	</c:choose>
	<span>
		总共<b>${page.totalCount}</b>条纪录，当前第<b>${page.pageNo}/${page.totalPages}</b>页
	</span>
</div>